//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package messages;

import common.ByteStream;

public class NotifyVisitedOnSale extends Base {
  public static final int MsgType = 20107;
  public long sellerId;
  public int slot;
  public int productId;
  public int productCount;
  public int productPrice;

  public NotifyVisitedOnSale() {
    super(20107);
  }

  public void encode(ByteStream stream) {
  }

  public void decode(ByteStream stream) {
    this.sellerId = stream.readLong().longValue();
    this.slot = stream.readInt();
    this.productId = stream.readInt();
    this.productCount = stream.readInt();
    this.productPrice = stream.readInt();
    this.isDecoded = true;
  }

  public String toString() {
    return this.isDecoded?"NotifyVisitedOnSale: [ Slot:" + this.slot + ", \"" + this.productId + "\", Price:" + this.productPrice + ", Amount:" + this.productCount + " ] seller:" + this.sellerId:super.toString();
  }
}
